package org.eclipse.egf.ftask.producer.invocation;

import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.egf.core.producer.InvocationException;
import org.eclipse.egf.ftask.producer.context.ITaskProductionContext;

public class TaskProductionForScala implements ITaskProduction {

	private ITaskProduction scalaTask;
 
	
	
	public TaskProductionForScala(ITaskProduction scalaTask){
		this.scalaTask = scalaTask;
	}
	public void preExecute(ITaskProductionContext productionContext,
			IProgressMonitor monitor) throws InvocationException {
			scalaTask.preExecute(productionContext, monitor);
	}

	public void doExecute(ITaskProductionContext productionContext,
			IProgressMonitor monitor) throws InvocationException {
		scalaTask.doExecute(productionContext, monitor);
	}

	public void postExecute(ITaskProductionContext productionContext,
			IProgressMonitor monitor) throws InvocationException {
		scalaTask.postExecute(productionContext, monitor);
	}

}
